package cn.zane.designPattern.behaviorPatterns.chainOfResponsibilityPatterns.oldCode;

import java.util.Date;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zane
 * @date 2025/01/22
 * @Description
 */
public class AuthService {

    private static Map<String, Date> authMap = new ConcurrentHashMap<>();

    // 查询审核结果
    public static Date queryAuthInfo(String userId, String orderId) {
        return authMap.get(userId.concat(orderId));
    }

    // 处理审核
    public static void auth(String userId, String orderId) {
        authMap.put(userId.concat(orderId), new Date());
    }
}
